import math
def mod(a, b):    
    c = a // b
    r = a - c * b
    return r

x = (pow(2,4)+7-3*4)/5
print(x)
x = (1+pow(3,2))*mod(16,7)/7
print(x)

